package tote.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 */
@Entity
public class BetByGroup implements Serializable {
    private static final long serialVersionUID = -1570638844105634336L;

    @Column(name = "groupid")
    private String groupid;

    @Column(name = "groupno")
    private Integer groupno;

    @Column(name = "teamid")
    private Integer teamid;

    @Column(name = "teamname")
    private String teamname;

    @Column(name = "teamurl")
    private String teamurl;

    @Column(name = "groupposition")
    private Integer groupposition;

    @Column(name = "totatlposition")
    private Integer totalposition;

    public String getGroupid() {
	return groupid;
    }

    public void setGroupid(String groupid) {
	this.groupid = groupid;
    }

    public Integer getGroupno() {
	return groupno;
    }

    public void setGroupno(Integer groupno) {
	this.groupno = groupno;
    }

    public Integer getGroupposition() {
	return groupposition;
    }

    public void setGroupposition(Integer groupposition) {
	this.groupposition = groupposition;
    }

    public Integer getTotalposition() {
	return totalposition;
    }

    public void setTotalposition(Integer totalposition) {
	this.totalposition = totalposition;
    }

    @Override
    public String toString() {
	return groupid + ":" + groupno + " {" + getGroupposition() + "/" + getTotalposition() + "}";
    }

    public void setTeamname(String teamname) {
	this.teamname = teamname;
    }

    public String getTeamname() {
	return teamname;
    }

    public void setTeamurl(String teamurl) {
	this.teamurl = teamurl;
    }

    public String getTeamurl() {
	return teamurl;
    }

    public void setTeamid(Integer teamid) {
	this.teamid = teamid;
    }

    @Id
    public Integer getTeamid() {
	return teamid;
    }
}
